package com.example.ruiji.utils.exception;

import com.example.ruiji.utils.vo.Result;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

/**
 * Author:BaiYiChen
 * Date:2022/4/20 20:15
 *
 * @author BaiYiChen
 */
@RestControllerAdvice
public class ControllerException {
  @ExceptionHandler(Exception.class)
  public Result errorResponse(){
    return Result.failed(200, "请求出错");
  }
}
